[파이썬] 파이썬(Py) 파일 윈도우에서 실행하기. (python file to windows executable file! - .py to .exe)
이미지출처 : en.kioskea.net
If you want to python application in windows without python, you can considering ‘py2exe’.
It is easy.
Step1. Decide what you want to turns Windows application.
Step2. Create setup script
Code:
1 from distutils.core import setup | |
2 import py2exe | |
3 | |
4 setup(console=['whatUwant.py']) |
Step3. run script with py2exepython setup.py py2exe
If you want execute python application that use win32com on other computer without python.
just add option with run scriptpython setup.py py2exe --packages win32com
http://www.python.org/
http://www.py2exe.org/
http://python.net/crew/mhammond/win32/Downloads.html